// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// import router from './router'
import VueRouter from 'vue-router'
import goods from './components/goods/goods.vue'
import ratings from './components/ratings/ratings.vue'
import seller from './components/seller/seller.vue'
import VueResource from 'vue-resource'

import './common/stylus/index.styl'


Vue.config.productionTip = false

Vue.use(VueRouter)
Vue.use(VueResource)

const routes = [
  {path: '/ratings', component: ratings},
  {path: '/goods', component: goods},
  {path: '/seller', component: seller}
]

const router = new VueRouter({
  routes,
  linkActiveClass:'active'
})


const app = new Vue({
  router,
  // 将App挂载上去   一定要挂载
  render(el){
    return el(App);
  }
}).$mount('#app');
